/**
 * MainToolBar.java
 * @author: liuex
 * 2007-12-31 ����01:43:16
 *
 * note: 
 */
package lex.mtd.ui;

import javax.swing.ActionMap;
import javax.swing.JToolBar;

import lex.mtd.Download;
import lex.mtd.utils.Actions;

public class MainToolBar extends JToolBar {
	private ActionMap am = null;

	public MainToolBar() {
		super();
		am = Download.getApplication().getContext().getActionMap();
		this.initialize();
	}

	private void initialize() {
		this.add(am.get(Actions.NEW_TASK));
		this.add(am.get(Actions.REMOVE_TASK));
		this.addSeparator();
		this.add(am.get(Actions.START_SELECTED_TASKS));
		this.add(am.get(Actions.STOP_SELECTED_TASKS));
	}
}
